package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hellobike.haxing.modules.wms.entity.TransportCar;
import com.hellobike.haxing.modules.wms.mapper.TransportCarMapper;
import com.hellobike.haxing.modules.wms.service.ITransportCarService;
import org.springframework.stereotype.Service;

/**
 * @Description: t_wms_transport_car
 * @Author: haxing-boot
 * @Date:   2020-02-02
 * @Version: V1.0
 */
@Service
public class TransportCarServiceImpl extends ServiceImpl<TransportCarMapper, TransportCar> implements ITransportCarService {

    @Override
    public TransportCar getByCarNo(String carNumber) {
        TransportCar param = new TransportCar();
        param.setCarNumber(carNumber);
        Wrapper<TransportCar> wrapper = new QueryWrapper<>(param);
        return baseMapper.selectOne(wrapper);
    }
}
